#Copyright (c) Microsoft. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.

cmake_minimum_required (VERSION 3.5)

compileAsC99()
if (MSVC)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -bigobj")
endif()

set(theseTestsName prov_transport_amqp_common_ut)

generate_cppunittest_wrapper(${theseTestsName})

set(${theseTestsName}_c_files
    ../../src/prov_transport_amqp_common.c
)

set(${theseTestsName}_h_files
)

file(COPY ../common_prov_e2e/prov_valgrind_suppression.supp DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
build_c_test_artifacts(${theseTestsName} ON "tests/azure_prov_device_tests"
    ADDITIONAL_LIBS
        prov_amqp_transport
    VALGRIND_SUPPRESSIONS_FILE 
        prov_valgrind_suppression.supp
)
